import request from '@/utils/request'

// 查询产品质检项管理列表
export function listMaterialQualityItem(query) {
  return request({
    url: '/qualityManagement/materialQualityItem/list',
    method: 'get',
    params: query
  })
}

// 查询产品质检项管理详细
export function getMaterialQualityItem(inspectionItemId) {
  return request({
    url: '/qualityManagement/materialQualityItem/' + inspectionItemId,
    method: 'get'
  })
}

// 新增产品质检项管理
export function addMaterialQualityItem(data) {
  return request({
    url: '/qualityManagement/materialQualityItem',
    method: 'post',
    data: data
  })
}

// 修改产品质检项管理
export function updateMaterialQualityItem(data) {
  return request({
    url: '/qualityManagement/materialQualityItem',
    method: 'put',
    data: data
  })
}

// 删除产品质检项管理
export function delMaterialQualityItem(inspectionItemId) {
  return request({
    url: '/qualityManagement/materialQualityItem/' + inspectionItemId,
    method: 'delete'
  })
}
